﻿@using OASystem.Model;
@{
    var user = new Trainlist();
    var isAdd = true;
    if (ViewBag.info != null)
    {
        user = ViewBag.info as Trainlist;
        isAdd = false;
    }
}
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:th="http://www.thymeleaf.org">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>培训</title>
    <link href="~/css/tail.css" rel="stylesheet" type="text/css" />
    <link href="~/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
    <link href="~/layui/css/modules/layer/default/layer.css" rel="stylesheet" />
    <script type="text/javascript" src="~/js/jquery.js"></script>
    <script src="~/js/1.9.1/jquery.min.js"></script>
    <script src="~/js/date/js/laydate.js"></script>
    <script type="text/javascript" src="~/layui/layui.js"></script>
    <script src="~/layui/lay/modules/layer.js"></script>
    <script src="~/js/Train_tail.js"></script>
</head>

<body style="border-radius: 8px" onload="change(),init()">
    <!--<div class="title"><h2>通知详情</h2></div>-->
    <div id="form_demo">
        <div class="top">
            <div>
                <div class="top_out">
                    <table class="table">
                        <tbody>
                            <tr>

                                <td colspan="6" style="text-align: left;border-top: none"><input type="text" name="name" minlength="2" required id="userid" style="display:none" value="@user.Id"></td>
                            </tr>
                            <tr>
                                <td style="border-top: none">培训名称：<i class="i_start"></i> </td>
                                <td colspan="6" style="text-align: left;border-top: none">
                                    @{
                                        var username = isAdd ? "" : user.TrainTitle;
                                    }
                                    <input type="text" name="name" minlength="2" required id="name" value="@username">
                                </td>
                            </tr>
                            <tr>
                                <td>主讲人：</td>
                                <td style="text-align: left">
                                    @{
                                        var hoster = isAdd ? "" : user.Speaker;
                                    }
                                    <input type="text" id="user" value="@hoster">
                                </td>
                                <td>培训地点：</td>
                                <td colspan="3" style="text-align: left">
                                    @{
                                        var address = isAdd ? "" : user.Address;
                                    }
                                    <input type="text" class="long_text" id="addr" value="@address">
                                </td>
                            </tr>
                            <tr>
                                <td>开始时间：</td>
                                <td style="text-align: left">
                                    @{
                                        var starttime = isAdd ? "" : user.StartTime.ToString();
                                    }
                                    <input type="text" id="demo" value="@starttime">
                                </td>
                                <td>结束时间：</td>
                                <td colspan="3" style="text-align: left">
                                    @{
                                        var endtime = isAdd ? "" : user.EndTime.ToString();
                                    }
                                    <input type="text" class="long_text" id="demo01" value="@endtime">
                                </td>
                            </tr>
                            <tr>
                                <td>参与人：</td>
                                <td style="text-align: left">
                                    @{
                                        var person = isAdd ? "" : user.UserId.ToString();
                                    }
                                    <input type="text" id="person" value="@person">
                                </td>

                            </tr>

                        </tbody>
                    </table>
                </div>s
            </div>
            <div class="bot_btn">
                <input class="btn" value="保存" type="button" id="submits" />
                <button class="btn btn1"><a href="notice.html" target="right">返回</a></button>
            </div>
        </div>
    </div>
</body>


</html>


